<?php
class bootstrap {

    private $registry;

    public function __construct($registry){
       $this->registry = $registry;
    }

    public function __get($key) {
		return $this->registry->get($key);
	}
	
	public function __set($key, $value) {
		$this->registry->set($key, $value);
	}

    public function bootstrap(){
   
        // Response
        $this->registry->set('response', new Response());

        // Request
        $this->registry->set('request', new Request());

        // Document
        $this->registry->set('document', new Document());	

        // Url
        $this->registry->set('url', new Url());

    }
}
